<br /><br />
<div id="view-content">
	<p>View script for controller <b>User</b> and script/action name <b>login</b></p>
	
	<?php 
		

		
		$auth = Zend_Auth::getInstance();
		if($auth->hasIdentity()){
			//if loged in
			$userSession = new Zend_Session_Namespace('user');
			echo "<p>note2: "."user loged in:".$userSession->username."</p>";
		}else{
			if($this->form != null){
				$this->form->setAction($this->url());
				echo $this->form;
			}
			echo "<p>note1: ".$this->note."</p>";
		}
		echo 'this->url = '.$this->url();
	?>
	
	
</div>